import Vue from 'vue'
import Router from 'vue-router'
import test from '@/pages/test'

Vue.use(Router)
export const constantRoutes = [
{
    path: '/test',
    component: test
  },{
    path: '/login',
    component: () => import('@/pages/login/Login')
  },{
    path: '/workshopKB',
    component: () => import('@/pages/pad/workshopkanban'),
    meta: {
      title: '中药先进制药与信息化技术融合-平板',
      requireLogin: true
    },
  },{
    path:'*',
    component: () => import('@/pages/errPage/404')
  }
]
export const asyncRoutes =[
  // WorkShop,
  // SystemSet,
  // KonwledgeGraph,
  // EquipManage,
  // DataMining,
  // Visualization,
  // WSsimulation,
]


export default new Router({
  // mode: 'history',
  routes: [
    ...asyncRoutes,
    ...constantRoutes
  ]
})
